//
// Created by lp on 2019/6/22.
//

#include "test_base.h"
enum MessageKey {
    MsgPrint = 1,
};

#include "utils/message_bus.hpp"


std::string print(int a) {
    INFO << a;
    return "";
}

TEST_F(MessageBus) {
    message_bus::get().subscribe<MsgPrint>(&print);
    auto r = message_bus::get().send_msg<MsgPrint, std::string>(100);
}

TEST_FINSH